<!DOCTYPE HTML>
<html>

	<include file="frontend_page/home/blog/blog_header"/>

	<body>

	<include file="frontend_page/home/blog/blog_nav"/>

	<!-- Main -->
		<div id="main-wrapper">
			<div class="container">

				<div id="main">
	
					<div class="row">
					
						<!-- Sidebar -->
							<div id="sidebar" class="4u">
								<section>
									<header>
										<h2>文章分类</h2>
									</header>
									<ul class="layui-nav layui-nav-tree" lay-filter="test">
										<foreach name="tags" item="label">
											<eq name="tag" value="$label.code">
												<li class="layui-nav-item layui-this"><a href="/frontendArticle?tag={$label.code}#p2">{$label.name}</a></li>
												<else/>
												<li class="layui-nav-item"><a href="/frontendArticle?tag={$label.code}#p2">{$label.name}</a></li>
											</eq>
										</foreach>
									</ul>
								</section>
							</div>
						<!-- Sidebar -->

						<!-- Content -->
							<div id="content" class="8u skel-cell-important">
								<section>
									<header>
										<h2>《九歌·山鬼》</h2>
										<span class="byline">&nbsp;&nbsp;&nbsp;&nbsp;若有人兮山之阿，被薜荔兮带女萝</span>
									</header>
									<foreach name="article" item="vo">
										<div class="fh5co-entry padding">
											<div>
											<span class="fh5co-post-date">
												{$vo.updated_at|date='Y-m-d H:i:s',###}
												<script>
													var label_info=['layui-badge layui-bg-green','layui-badge layui-bg-blue','layui-badge layui-bg-black','layui-badge layui-bg-gray','layui-badge layui-bg-orange'];
                                                    var label='{$vo.label}';
                                                    label=label.split('--');
                                                    for (i=0;i<label.length;i++){
                                                        document.write("<span style='margin-right: 5px' class='"+label_info[i%5]+"'>"+label[i]+"</span>");
                                                    }
												</script>
											</span>
												<h2><a href="/frontendArtDetail?id={$vo.id}" target="_blank">{$vo.title}</a></h2>
												<p>{$vo.sub_title}<i style="margin-left: 10px;margin-right: 10px" class="icon-eye-open"></i>{$vo.hits}</p>
											</div>
										</div>
									</foreach>
								</section>
							</div>
						<!-- Content -->
							<div class="row yui_page" style="margin-left: 0px;float: right">
								{$article->render()}
							</div>
					</div>
				
				</div>
			</div>
		</div>
	<!-- /Main -->


	<!-- Copyright -->
	<include file="frontend_page/home/blog/blog_copyright"/>

	</body>
</html>